package pta.newch04.ex11;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String name = sc.next();
        int age = sc.nextInt();
        String sex =sc.next();
        Student student = new Student(name, age, sex);
        System.out.println(student);
        sc.close();
    }
}
class Student{
    public Student(String name, int age, String sex) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    private String name;
    private String sex;
    private int age;

    @Override
    public String toString() {
        return "Student [name='" + name + "', sex='" + sex + "',  age=" + age + "]";
    }
}
